package tsinghua.smxq.utilitiespayment;


public class MoneyandMoneyId 
{
	public static String getMoney(int moneyId)
	{
		String moneyType = "人民币";
		if(moneyId ==3)
		{
			
		}
		else
		{
			moneyType = "金条";
		}
		return moneyType;
	}
	
	public static int getMoneyId(String moneyType)
	{
		int id = 3;
		moneyType = moneyType.trim();
		if(moneyType.compareToIgnoreCase("人民币") == 0)
		{
			id = 3;
		}
		else
		{
			id = 0;
		}
		return id;
	}
}
